#!/bin/bash
# triton-adapter-opt --discrete-mask-access-conversion /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o ../dump/discrete-mask-access-conversion_lightning_attn.mlir

# triton-adapter-opt --triton-to-annotation /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o ../dump/triton-to-annotation_lightning_attn.mlir

# 这个转换失败了 
triton-adapter-opt --triton-to-unstructure /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o /home/workspace/wrq/SOW2/attn/dump/triton-to-unstructure_lightning_attn.mlir

# triton-adapter-opt --triton-to-hivm /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o ../dump/triton-to-hivm_lightning_attn.mlir

# triton-adapter-opt --bubble-up-operation /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o ../dump/bubble-up-operation_lightning_attn.mlir

# triton-adapter-opt --triton-to-linalg /home/workspace/wrq/SOW2/attn/dump/daUTjZj2OxI3_DrqvsgGzqDolbwdn7zg-j5Ms_4AZk0/kernel.ttir.mlir -o ../dump/triton-to-linalg_lightning_attn.mlir

# /home/workspace/wrq/SOW2/triton-ascend-linearize/triton/backends/ascend/triton-adapter-opt --triton-to-linalg-experimental /home/workspace/wrq/SOW2/attn/dump/1RcgB04cNWSL22Xqg4a3O7wVofehWMLcAUSl8kNhBr0/kernel.ttir.mlir -o /home/workspace/wrq/SOW2/attn/dump/lightning_attn_tt_to_linalg.mlir 

# /home/workspace/wrq/SOW2/triton-ascend-linearize/triton/backends/ascend/triton-adapter-opt --triton-to-structured /home/workspace/wrq/SOW2/attn/dump/1RcgB04cNWSL22Xqg4a3O7wVofehWMLcAUSl8kNhBr0/kernel.ttir.mlir -o /home/workspace/wrq/SOW2/attn/dump/lightning_attn_tt_to_linalg.mlir 
